const fs = require("fs");
const path = require("path")
let jsonPath = path.resolve(__dirname,"../data/emoji.json")
let jsonJsPath = path.resolve(__dirname,"../data/emoji.js")
console.log(jsonJsPath)
fs.readFile(jsonPath,(err,data)=>{
    if(err){
        console.log(err)
    }
    let json = data.toString("utf-8")
    fs.writeFile(jsonJsPath,JSON.stringify(JSON.parse(json)),()=>{
        console.log('convert complete.')
    })
    console.log()
})